package com.daniel.gof.builder;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/5/28 17:33
 */
public class Director {

	Builder mBuilder;

	public Director(Builder builder) {
		this.mBuilder = builder;
	}

	public Computer build() {
		this.mBuilder.addCpu();
		this.mBuilder.addMainBoard();
		this.mBuilder.addRam();
		return mBuilder.getComputer();
	}
}
